/**
 * HomeController
 *
 * @description :: Server-side logic for managing homes
 * @help        :: See http://sailsjs.org/#!/documentation/concepts/Controllers
 */

module.exports = {

  index: function (req, res) {
    return res.view('index');
  },

  about: function (req, res) {
    return res.view('about-us');
  },

  contact: function (req, res) {
    return res.view('contact-us');
  },

  faq: function (req, res) {
    Faq.find().then(function (record) {
      res.view('faq', {data: record})
    }).catch(function (err) {
      res.serverError(err);
    })
  },

  other: function (req, res) {
    return res.view('blank');
  }
};

